package com.atguigu.gulimall.product.service;

import com.atguigu.gulimall.product.entity.vo.AttrRespVo;
import com.atguigu.gulimall.product.entity.vo.Attrvo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.product.entity.AttrEntity;

import java.util.Map;

/**
 * 商品属性
 *
 * @author Syh
 * @email 1584442935@qq.com
 * @date 2022-02-07 14:29:04
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveAttr(Attrvo attrvo);

    //查询分类规格参数
    PageUtils selectAttrPageById(Map<String, Object> params, Long catelogId);

    //查询属性详情（封装数据返回）
    AttrRespVo selectBaseById(Long attrId);

    //级联更新
    void updateDetil(Attrvo attr);

    //查询销售数据
    PageUtils selectAttrSalePageById(Map<String, Object> params, Long catelogId);


    PageUtils queryBaseAttrPage(Map<String, Object> params, Long catelogId, String type);
}

